package org.blog.service;

import org.blog.helper.Result;
import org.blog.model.ModelCatalog;
import org.blog.model.ModelPassport;

public interface CatalogService {

	/**
	 * 添加目录
	 * 
	 * @param t
	 */
	public Result<?> addCatalog(ModelCatalog t,ModelPassport passport);

	/**
	 * 修改目录名称
	 * 
	 * @param t
	 * @return
	 */
	public Result<?> modifyCatalog(ModelCatalog t,ModelPassport passport);

	/**
	 * 根据主键删除目录，只是修改状态为删除
	 * 
	 * @param id
	 * @return
	 */
	public Result<?> deleteCatalog(ModelCatalog t,ModelPassport passport);
	
	/**
	 * 根据主键删除目录，从数据库中删除
	 * @param id
	 * @return
	 */
	public Result<?> delete(ModelCatalog t,ModelPassport passport);

	/**
	 * 根据主键获取目录
	 * 
	 * @param id
	 * @return
	 */
	public Result<?> getCatalog(ModelCatalog t,ModelPassport passport);

	/**
	 * 获取所有目录列表
	 * 
	 * @return
	 */
	public Result<?> getListCatalog(ModelPassport passport);

}
